package com.newleaders.mypage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller  
public class MypageController {
    @RequestMapping(value="index.do")  
    public void index_jsp(Model model){  
        model.addAttribute("liming", "黎明你好");  
        System.out.println("index.jsp");  
    }  
    @RequestMapping(value="mypage.aa")  
    public void mypage_jsp(Model model){  
        model.addAttribute("vip", MypageConst.vip);
        model.addAttribute("jobtimes", "1");
        model.addAttribute("lovetimes", "2");
        model.addAttribute("decryption", "3");
        model.addAttribute("hide", "4");
        System.out.println("mypage.jsp");  
    }  
    @RequestMapping(value="webpay.aa")  
    public void webpay_jsp(Model model){  
        model.addAttribute("money", "20");
        model.addAttribute("appid", "2");
        model.addAttribute("TimeStamp", "3");
        model.addAttribute("NonceStr", "4");
        model.addAttribute("Package", "5");
        model.addAttribute("PaySign", "6");
        System.out.println("webpay.jsp");  
    } 
}
